import request from "@/utils/request"
// 获取标签列表
export const upload = (file, callback) => {
  const formData = new FormData()
  formData.append("file", file)
  return request.post("/common/upload", formData, {
    headers: {
      "Content-Type": "multipart/form-data"
    },
    onUploadProgress: callback
  })
}
